package com.tech.algorithm.recursion;

import com.sun.org.apache.regexp.internal.REUtil;

import java.util.ArrayList;
import java.util.List;

/**
 * @Description:
 * @Author: zl
 * @Date: 2019/8/22 17:29
 */
public class RecursionTest {

    public static int test(int n) {
        if (n == 1) {
            return 1;
        } else {
           return test(n - 1)*n;
        }
    }

    public static void main(String[] args) {
        List<String> list = new ArrayList<>();
        System.out.println(list.isEmpty() );
        System.out.println(test(3));
    }
}
